home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
gnu
/
nihcl-30.lha
/
nihcl-3.0
/
lib
/
IdentDict.h
< prev
next >
Wrap
C/C++ Source or Header
|
1990-05-19
|
2KB
|
54 lines
#ifndef IDENTDICT_H
#define IDENTDICT_H
/*$Header: /afs/alw.nih.gov/unix/sun4_40c/usr/local/src/nihcl-3.0/share/lib/RCS/IdentDict.h,v 3.0 90/05/20 00:19:49 kgorlen Rel $*/
/* IdentDict.h -- declarations for Identity Dictionary
THIS SOFTWARE FITS THE DESCRIPTION IN THE U.S. COPYRIGHT ACT OF A
"UNITED STATES GOVERNMENT WORK". IT WAS WRITTEN AS A PART OF THE
AUTHOR'S OFFICIAL DUTIES AS A GOVERNMENT EMPLOYEE. THIS MEANS IT
CANNOT BE COPYRIGHTED. THIS SOFTWARE IS FREELY AVAILABLE TO THE
PUBLIC FOR USE WITHOUT A COPYRIGHT NOTICE, AND THERE ARE NO
RESTRICTIONS ON ITS USE, NOW OR SUBSEQUENTLY.
Author:
K. E. Gorlen
Computer Systems Laboratory, DCRT
National Institutes of Health
Bethesda, MD 20892
$Log: IdentDict.h,v $
* Revision 3.0 90/05/20 00:19:49 kgorlen
* Release for 1st edition.
*
*/
#include "Dictionary.h"
class LookupKey;
class IdentDict: public Dictionary {
DECLARE_MEMBERS(IdentDict);
virtual int findIndexOf(const Object&) const;
#ifndef BUG_38
// internal <<AT&T C++ Translator 2.00 06/30/89>> error: bus error (or something nasty like that)
protected: // storer() functions for object I/O
virtual void storer(OIOofd& fd) const { Dictionary::storer(fd); };
virtual void storer(OIOout& strm) const { Dictionary::storer(strm); };
#endif
public:
IdentDict(unsigned size =DEFAULT_CAPACITY);
#ifndef BUG_TOOBIG
// yacc stack overflow
IdentDict(const IdentDict&);
#endif
void operator=(const IdentDict&);
virtual LookupKey* assocAt(const Object& key) const;
virtual Object* atKey(const Object& key) const;
virtual Object* atKey(const Object& key, Object& newValue);
virtual bool includesKey(const Object& key) const;
};
#endif